package super_usage;

import java.util.Objects;

/**
 * Description: 基类
 *
 * @author code-worker
 * @date 2021/10/17 9:35
 */
public class Base {

    private Integer length;

    private Integer width;

    public Base() {
        System.out.println("Base");
    }

    public Base(Integer length, Integer width) {
        this.length = length;
        this.width = width;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public void show(){
        System.out.println("length = " + length + ", width = " + width);
    }

    public void print(){
        System.out.println("Base");
    }

    @Override
    public String toString() {
        return "Base{" +
                "length=" + length +
                ", width=" + width +
                '}';
    }

}

